// Copyright 2013 Square, Inc.
package org.assertj.ohos.api.animation;

import ohos.agp.animation.AnimatorGroup;
import static org.assertj.core.api.Assertions.assertThat;

public class AnimatorSetAssert extends AbstractAnimatorAssert<AnimatorSetAssert, AnimatorGroup> {
  public AnimatorSetAssert(AnimatorGroup actual) {
    super(actual, AnimatorSetAssert.class);
  }

  public AnimatorSetAssert hasAnimatorCount(int count) {
    isNotNull();
    int actualCount = actual.getAnimatorsAt(0).size();
    assertThat(actualCount) //
        .overridingErrorMessage("Expected animator count <%s> but was <%s>.", count, actualCount) //
        .isEqualTo(count);
    return myself;
  }
}
